package com.lion.ball.app.models.result;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:44
 * Use for: 商品属性关联 响应结果
 * Explain:
 * 
 */
@Schema(description = "商品属性关联 请求响应结果")
public class TradeGoodsAttrResult {
    @Schema(description = "ID", example = "1")
    private long id;
    @Schema(description = "商品编码", example = "1")
    private long code;
    @Schema(description = "属性项", example = "字符串")
    private String itemName;
    @Schema(description = "属性值", example = "字符串")
    private String value;
    @Schema(description = "属性图标索引", example = "1")
    private int iconIndex;

    // 无参构造方法
    public TradeGoodsAttrResult() {
    }

    // 全参数构造方法
    public TradeGoodsAttrResult(long id, long code, String itemName, String value, int iconIndex) {
        this.id = id;
        this.code = code;
        this.itemName = itemName;
        this.value = value;
        this.iconIndex = iconIndex;
    }

    // 全参数create生成器
    public static TradeGoodsAttrResult create(long id, long code, String itemName, String value, int iconIndex) {
        return new TradeGoodsAttrResult(id, code, itemName, value, iconIndex);
    }

    // 全参数of生成器
    public static TradeGoodsAttrResult of(long id, long code, String itemName, String value, int iconIndex) {
        return new TradeGoodsAttrResult(id, code, itemName, value, iconIndex);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public TradeGoodsAttrResult setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public TradeGoodsAttrResult setCode(long code) {
        this.code = code;
        return this;
    }

    public String getItemName() {
        return itemName;
    }

    public TradeGoodsAttrResult setItemName(String itemName) {
        this.itemName = itemName;
        return this;
    }

    public String getValue() {
        return value;
    }

    public TradeGoodsAttrResult setValue(String value) {
        this.value = value;
        return this;
    }

    public int getIconIndex() {
        return iconIndex;
    }

    public TradeGoodsAttrResult setIconIndex(int iconIndex) {
        this.iconIndex = iconIndex;
        return this;
    }

    // endregion Getter和Setter方法
}
